package cn.fntop.notify;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;

/**
 * Hello world!
 */
@SpringBootApplication
@Slf4j
public class JdaNotify implements EnvironmentAware {
    public static void main(String[] args) {
        SpringApplication.run(JdaNotify.class, args);
    }

    @Override
    public void setEnvironment(Environment environment) {
        log.info("启动了{}项目", environment.getProperty("spring.application.name"));
    }
}
